package com.trust.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.trust.entity.SystemDepartment;
import com.trust.entity.VO.DeptListVO;

import java.util.List;

public interface SystemDepartmentService extends IService<SystemDepartment> {

    /**
     * 获取名称
     * @param id
     * @return
     */
    String getNameById(Integer id);


    /**
     * tree
     * @return
     */
    List<DeptListVO> tree(Integer parentId);
}
